package design.observer;

/**
 * 观察者实现
 */
public class MobileApp implements Observer{
    private String name;
    public MobileApp(String name){
        this.name = name;
    }
    @Override
    public void update(String weather) {
        System.out.println(name + " received weather update: " + weather);
    }
}
